package com.cx.mall.demo.config;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "sms")
public class SmsConfig {
    @Schema(description = "短信的签名")
    private String signature;

    @Schema(description = "短信模板Code")
    private String templateCode;

    private String accessKey;
    private String accessSecret;

    // 注意：移除static修饰符，使用实例方法
    public String getSignature() { return signature; }
    public void setSignature(String signature) { this.signature = signature; }

    public String getTemplateCode() { return templateCode; }
    public void setTemplateCode(String templateCode) { this.templateCode = templateCode; }

    public String getAccessKey() { return accessKey; }
    public void setAccessKey(String accessKey) { this.accessKey = accessKey; }

    public String getAccessSecret() { return accessSecret; }
    public void setAccessSecret(String accessSecret) { this.accessSecret = accessSecret; }
}